package team.knowers.tourist.service;

import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.tourist.dao.entity.PaymentDO;
import team.knowers.tourist.dto.req.PaymentCreateReqDTO;

import java.util.List;

public interface PaymentService extends IService<PaymentDO> {
    /**
     * 创建订单
     * @param req
     */
    void createPayment (PaymentCreateReqDTO req);
    /**
     * 支付订单
     */
    void payPayment(int id);

    /**
     * 取消订单
     * @param id
     */
    void cancelPayment(int id);

    /**
     * 查看订单
     * @param touristId
     * @return
     */

    List<PaymentDO> viewOrder(int touristId);


    /**
     * 取票
     */
    Boolean getTicket(int touristId,int bookingHash,int paymentHash);
}
